-- GENERATED SPELL FOR [Ishanah] --


function spell0_18538(pUnit, Event) --@Greater Heal,Heal--
pUnit:FullCastSpellOnTarget(35096,pUnit)
pUnit:RegisterEvent('Sorts_18538', 3500, 1)
end

function spell1_18538(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(15238,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18538', 2500, 1)
end

function spell2_18538(pUnit, Event) --@Power Word: Shield,n/a--
pUnit:FullCastSpellOnTarget(22187,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18538', 30342, 1)
end

function Sorts_18538(pUnit, Event)
local choix_sorts_18538 = math.random(0, 2)
if choix_sorts_18538 == 0 then
pUnit:RegisterEvent('spell0_18538', 1, 1)
end
if choix_sorts_18538 == 1 then
pUnit:RegisterEvent('spell1_18538', 1, 1)
end
if choix_sorts_18538 == 2 then
pUnit:RegisterEvent('spell2_18538', 1, 1)
end
end

function mob18538_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18538', math.random(1500, 3000), 1)
end

function mob18538_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18538_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18538_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18538, 1, 'mob18538_Action')
RegisterUnitEvent(18538, 2, 'mob18538_Leave')
RegisterUnitEvent(18538, 3, 'mob18538_Kill')
RegisterUnitEvent(18538, 4, 'mob18538_Die')
